/**
 * Copyright (c) 2014-2017, huli.com
 * All rights reserved.
 */
package com.xiaohujr.xuexue.rabbitmq.main;

import com.xiaohujr.xuexue.rabbitmq.Producer;
import com.xiaohujr.xuexue.rabbitmq.beans.QueueInfo;
import com.xiaohujr.xuexue.rabbitmq.constants.RabbitConstants;

/**
 * 发送测试.
 *
 * @author Xue Xue (xuexue1@huli.com)
 * @version $Id$
 * @since 2018/4/10
 */
public class SendMain {

    public static void main(String[] args) {
        Producer.sendMsgDirectly(
                new QueueInfo().setQueueName(RabbitConstants.DEFAULT_DIRECT_QUEUE)
                        .setExchangeName(RabbitConstants.DEFAULT_EXCHANGE)
                        .setRoutingKey(RabbitConstants.DEFAULT_ROUTING_KEY)
                        .setMessage("hello the world!-by xx3"));
        Producer.closeConn();
    }

}
